package ForSoSo.entity;

public class MobileCard {
    private String cardNumber;//卡号
    private String userName;//用户名
    private String passWord;//密码
    private ServicePackage serPackage;//所属套餐
    private double consumAmount;//当月消费金额
    private double money;//账户金额
    private int realTalkTime;//实际通话时长
    private int realSMSCount;//实际发送短信条数(条)
    private int realFlow;//实际上网流量

    public MobileCard() {
    }

    public MobileCard(String cardNumber, String userName, String passWord, ServicePackage serPackage,
                      double consumAmount, double money, int realTalkTime, int realSMSCount, int realFlow) {
        this.cardNumber = cardNumber;
        this.userName = userName;
        this.passWord = passWord;
        this.serPackage = serPackage;
        this.consumAmount = consumAmount;
        this.money = money;
        this.realTalkTime = realTalkTime;
        this.realSMSCount = realSMSCount;
        this.realFlow = realFlow;
    }

    public MobileCard(String cardNumber, String userName, String passWord, ServicePackage serPackage,
                      double consumAmount, double money) {
        this.cardNumber = cardNumber;
        this.userName = userName;
        this.passWord = passWord;
        this.serPackage = serPackage;
        this.consumAmount = consumAmount;
        this.money = money;
    }

    /**
     * 获取
     *
     * @return cardNumber
     */
    public String getCardNumber() {
        return cardNumber;
    }

    /**
     * 设置
     *
     * @param cardNumber
     */
    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    /**
     * 获取
     *
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     *
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取
     *
     * @return passWord
     */
    public String getPassWord() {
        return passWord;
    }

    /**
     * 设置
     *
     * @param passWord
     */
    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    /**
     * 获取
     *
     * @return serPackage
     */
    public ServicePackage getSerPackage() {
        return serPackage;
    }

    /**
     * 设置
     *
     * @param serPackage
     */
    public void setSerPackage(ServicePackage serPackage) {
        this.serPackage = serPackage;
    }

    /**
     * 获取
     *
     * @return consumAmount
     */
    public double getConsumAmount() {
        return consumAmount;
    }

    /**
     * 设置
     *
     * @param consumAmount
     */
    public void setConsumAmount(double consumAmount) {
        this.consumAmount = consumAmount;
    }

    /**
     * 获取
     *
     * @return money
     */
    public double getMoney() {
        return money;
    }

    /**
     * 设置
     *
     * @param money
     */
    public void setMoney(double money) {
        this.money = money;
    }

    /**
     * 获取
     *
     * @return realTalkTime
     */
    public int getRealTalkTime() {
        return realTalkTime;
    }

    /**
     * 设置
     *
     * @param realTalkTime
     */
    public void setRealTalkTime(int realTalkTime) {
        this.realTalkTime = realTalkTime;
    }

    /**
     * 获取
     *
     * @return realSMSCount
     */
    public int getRealSMSCount() {
        return realSMSCount;
    }

    /**
     * 设置
     *
     * @param realSMSCount
     */
    public void setRealSMSCount(int realSMSCount) {
        this.realSMSCount = realSMSCount;
    }

    /**
     * 获取
     *
     * @return realFlow
     */
    public int getRealFlow() {
        return realFlow;
    }

    /**
     * 设置
     *
     * @param realFlow
     */
    public void setRealFlow(int realFlow) {
        this.realFlow = realFlow;
    }

    public String toString() {
        return "MobileCard{cardNumber = " + cardNumber + ", userName = " + userName + ", passWord = " + passWord + "," +
                " serPackage = " + serPackage + ", consumAmount = " + consumAmount + ", money = " + money + ", " +
                "realTalkTime = " + realTalkTime + ", realSMSCount = " + realSMSCount + ", realFlow = " + realFlow +
                "}";
    }

    /*
     * 显示卡信息
     * */
    public void showMeg() {
        System.out.println("卡号：" + this.cardNumber + "用户名：" + this.userName + "当前余额：" + this.money + "元");
        this.serPackage.showInfo();
    }
}
